Each atom has a valence shell (blue sphere) and a conduction shell (orange sphere). The gap between them is the band gap. As temperature rises the conduction shell contracts — when it overlaps the valence shell, electrons can escape and travel between neighbouring atoms.